<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

$this->title = $name;
?>

<?php if(YII_DEBUG):?>

<div class="site-error">

    <h1><?= Html::encode($this->title) ?></h1>

    <div class="alert alert-danger">
        <?= nl2br(Html::encode($message)) ?>
    </div>

    <p>
        The above error occurred while the Web server was processing your request.
    </p>
    <p>
        Please contact us if you think this is a server error. Thank you.
    </p>

</div>
<?php else:?>

<!DOCTYPE html>
<html xmlns:wb="http://open.weibo.com/wb">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
	<meta content="yes" name="apple-mobile-web-app-capable" />
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta content="telephone=no" name="format-detection" />
	<meta content="emai=no" name="format-detection" />
	<meta property="wb:webmaster" content="7ae117dc1d8992dc" />
	<link rel="stylesheet" type="text/css" href="/css/common.css" />
	<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
	<title>芝士妈妈</title>
	<style>
		body {
			text-align: center;
		}

		.error {
			border-bottom: 1px solid #d0d0d0;
			padding: 10% 0 4% 0;
		}

			.error > img {
				max-width: 561px;
				width: 74.6%;
			}

		.more {
			border-top: 7px solid #ececec;
			padding: 4% 5%;
		}

			.more > img {
				max-width: 224px;
				width: 29.8%;
			}

			.more > p {
				font-size: 1.6rem;
				margin-top: 20px;
				text-align: left;
			}

				.more > p.qrcode {
					margin-top: 10px;
					text-align: center;
				}

					.more > p.qrcode img {
						max-width: 263px;
						width: 35%;
					}

			.more a {
				color: #e78234;
				text-decoration: underline;
			}
	</style>
	 <script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "//hm.baidu.com/hm.js?19f39b206aedf768b42fbc69e4e4f721";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>
</head>
<body>
	<section class="error">
		<img src="/img/notice_error.png" />
	</section>
	<section class="more">
		<img src="/img/text_nhky.png" />
		<p>
			1、关注“芝士妈妈在线”服务号，参加活动。
		</p>
		<p class="qrcode">
			<img src="/img/qcode.png" />
		</p>
		<p>
			2、了解更多，去<a href="http://www.zhishimama.com">芝士妈妈官网</a>。
		</p>
		<p><wb:share-button appkey="724579473" addition="number" type="button"></wb:share-button></p>
	</section>
</body>
</html>


<?php endif;?>